package com.net.oil.app;
/*
 * Created by lch on 2018/3/1 0001.
 */

import android.app.Application;

import com.mob.MobSDK;
import com.net.oil.util.glide.GlideAlbumLoader;
import com.yanzhenjie.album.Album;
import com.yanzhenjie.album.AlbumConfig;

import java.util.Locale;

import cn.jpush.android.api.JPushInterface;


public class MyApp extends Application {


    private static MyApp application;
    @Override
    public void onCreate() {
        super.onCreate();
        application = this;

        /* 初始化相册 */
        Album.initialize(AlbumConfig.newBuilder(application)
                .setAlbumLoader(new GlideAlbumLoader()) // This is not necessary.
                .setLocale(Locale.getDefault())
                .build()
        );

        /* 初始化极光推送 */
        JPushInterface.init(this);

        /* sharedSdk 初始化 */
        MobSDK.init(this);



    }

    public static MyApp getApplication() {
        return application;
    }
}
